import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/index.css'
// 1. 引入 { createPinia } from 'pinia'
import { createPinia } from 'pinia'
import GAsideMenu from '@/components/GAsideMenu.vue'
import GBreadcrumb from '@/components/GBreadcrumb.vue'



// 给实例挂载属性 针对v2迁移时的chuli
const app = createApp(App);
// 每个实例都会拥有
app.config.globalProperties.$abc = '123';
declare module '@vue/runtime-core' {
    interface ComponentCustomProperties {
        $abc: any
    }  
}
app.component('GAsideMenu',GAsideMenu);
app.component(GBreadcrumb.name,GBreadcrumb);

// 2: 安装pinia插件
app
.use(createPinia())
.use(ElementPlus)
.use(router)
.mount('#app')
